<template>
  <div class="superman-bg">
    <div class="superman"></div>
    <div class="iknow" @click="hide()" ></div>
  </div>
</template>

<script>
import '../../assets/css/index.less'
import { mapMutations, mapGetters, mapActions } from 'vuex'
export default {
  name: 'superman',
  methods:{
      hide:function(){
        this.hideSuperMan()
      },
      show:function(){
        this.showSuperMan()
      },
      ...mapMutations({                 //引入 修改状态的方法  就可以用 this.setSinger()     //来进行修改状态(状态改变会自动渲染你所关联的组件)         
            hideSuperMan: 'HIDE_SUPER_MAN',
            showSuperMan: 'SHOW_SUPER_MAN'
    }),
  }

}
</script>